package chapter2.No2_3_volatile关键字.dVolatile非原子的特性;

/**
 * !
 *
 * @author liujian
 * @version 2016/11/16 0016
 */
public class MyThread extends Thread {
    ServiceClass sc;

    public MyThread(ServiceClass sc) {
        this.sc = sc;
    }

    @Override
    public void run() {
        sc.addCount();
    }

}
